const express = require("express");
const user = require("../../controllers/user");
const router = express.Router();
/**,
 * @swagger
 * /admin/user/login:
 *    post:
 *      tags:
 *      - 用户相关接口
 *      summary: 用户登录
 *      produces:
 *      - application/json
 *      requestBody:
 *          content:
 *           application/json:
 *             schema:
 *                type: object
 *                properties:
 *                  userName:
 *                     type: string
 *                  password:
 *                      type: string
 *
 *      responses:
 *        200:
 *          description: 成功
 *          content:
 *                  application/json:
 *                    schema:
 *                        type: object
 *                        properties:
 *                           data:
 *                             type: string
 *                           message:
 *                             type: string
 *                           code:
 *                             type: number
 *                             example: 200
 *                           success:
 *                              type: boolean
 *                              example: true
 *        400:
 *          description: 参数类型错误
 *        500:
 *          description: 服务器错误
 * */
router.post('/submit',user.submit)
router.post('/findList',user.findList)
// router.post("/login", user.login);
// router.get("/getUserInfo", user.getUserInfo);
// router.post("/addUser", user.addUser);
module.exports = router;
